package com.kgdev.cweb.entities.prod.owned.client;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import com.kgdev.cweb.entities.ManagedEntity;
import com.kgdev.cweb.entities.prod.managed.Client;

/**
 * The persistent class for the payment_info database table.
 * 
 */
@Entity
@Table(name = "prod_client_payinf")
public class ClientPaymentInfo implements Serializable, ManagedEntity {
	private static final long serialVersionUID = 1L;

	@Id
	@TableGenerator(name = "PROD_CLN_PI", allocationSize = 1, initialValue = 1, table = "SEQUENCE", valueColumnName = "SEQ_COUNT", pkColumnName = "SEQ_NAME", pkColumnValue = "PROD_CLN_PI")
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "PROD_CLN_PI")
	@Column(name = "payment_info_id", unique = true, nullable = false)
	private Integer paymentInfoId;

	@Column(name = "payment_info", length = 45)
	private String paymentInfo;

	// bi-directional many-to-one association to Client
	@ManyToOne
	@JoinColumn(name = "client_id")
	private Client client;

	@Column(name = "is_active")
	private Boolean isActive;

	public Boolean getIsActive() {
		return isActive;
	}

	public void setIsActive(Boolean isActive) {
		this.isActive = isActive;
	}

	public ClientPaymentInfo() {
	}

	public Integer getPaymentInfoId() {
		return this.paymentInfoId;
	}

	public void setPaymentInfoId(Integer paymentInfoId) {
		this.paymentInfoId = paymentInfoId;
	}

	public String getPaymentInfo() {
		return this.paymentInfo;
	}

	public void setPaymentInfo(String paymentInfo) {
		this.paymentInfo = paymentInfo;
	}

	public Client getClient() {
		return this.client;
	}

	public void setClient(Client client) {
		this.client = client;
	}

}